<?php /* Smarty version 2.6.18, created on 2016-12-15 15:24:16
         compiled from flink/mod.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="page-wrapper">
    <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/title.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    <form  method="post" action="<?php echo $this->_tpl_vars['url']; ?>
/update">
		<ul class="list-group">
			<input type="hidden" name="id" value="<?php echo $this->_tpl_vars['post']['id']; ?>
">
			<li class="list-group-item">
				<span class="label label-info">网站名称<span class="red_font">*</span></span>
				 <input type="text" class="form-control" name="webname" maxlength="30" size="20" value="<?php echo $this->_tpl_vars['post']['webname']; ?>
">
			</li>
			<li class="list-group-item">
				<span class="label label-info">地&nbsp;&nbsp;址<span class="red_font">*</span></span>
					<input type="text" class="form-control" name="url" maxlength="60" size="40" value="<?php echo $this->_tpl_vars['post']['url']; ?>
"> &nbsp; 例如：http://www.lampbrother.net
			
			</li>
			<li class="list-group-item">
				<span class="label label-info">LOGO<span class="red_font">*</span></span>
				<span id="logo"><img src="<?php echo $this->_tpl_vars['public']; ?>
/uploads/logos/<?php echo $this->_tpl_vars['post']['logo']; ?>
" width="150" />
				 <input type="button" class="button" onclick="change()" value="换LOGO"></span>
				 <input type="hidden" name="logo" value="<?php echo $this->_tpl_vars['post']['logo']; ?>
">
				<script>
					function change(){
						var logo=document.getElementById("logo");
						logo.innerHTML='<input type="text" class="form-control" name="logoc" maxlength="100" size="40" value=""> &nbsp; 网站LOGO图片的真实地址,会自动下载到本地。';
					}
				</script>
			</li>

				
			<li class="list-group-item">
				<span class="label label-info" style="margin-top:30px">网站描述</span>
				<textarea class="form-control" name="msg" cols="50" rows="5"><?php echo $this->_tpl_vars['post']['msg']; ?>
</textarea>
			</li>
			<li class="list-group-item">
				<span class="label label-info">联系人<span class="red_font">*</span></span>
				<input type="text" class="form-control" name="rname" maxlength="30" size="10" value="<?php echo $this->_tpl_vars['post']['rname']; ?>
">
			</li>
			<li class="list-group-item">
				<span class="label label-info">站长Email<span class="red_font">*</span></span>
				<input type="text" class="form-control" name="email" maxlength="60" size="30" value="<?php echo $this->_tpl_vars['post']['email']; ?>
">
			</li>

			<li class="list-group-item">
				<span class="label label-info">显示方式</span>
				
				<input type="radio" name="list" <?php if ($this->_tpl_vars['post']['list'] == '0' || $this->_tpl_vars['post']['list'] == null): ?> checked <?php endif; ?> value="0"> 网站名称
				<input type="radio" name="list"  <?php if ($this->_tpl_vars['post']['list'] == '1'): ?> checked <?php endif; ?> value="1"> LOGO图片
			</li>
			<li class="list-group-item">
				<span class="label label-info">是否显示</span>
				
				<input type="radio" name="audit" <?php if ($this->_tpl_vars['post']['audit'] == '0' || $this->_tpl_vars['post']['audit'] == null): ?> checked <?php endif; ?> value="0"> 不显示
				<input type="radio" name="audit"  <?php if ($this->_tpl_vars['post']['audit'] == '1'): ?> checked <?php endif; ?> value="1"> 显示
			</li>

			<li class="list-group-item">
				<button type="submit" class="btn btn-primary">修 改</button>
			    &nbsp;&nbsp;
			    <button type="reset" class="btn btn-primary">重 置</button>
			     &nbsp;&nbsp;
				<button  onclick="if(confirm('确定要删除吗?')) window.location='<?php echo $this->_tpl_vars['url']; ?>
/del/id/<?php echo $this->_tpl_vars['post']['id']; ?>
'" class="btn btn-primary" >删 除</button>
			</li>
		</ul>	
   </form>	
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "public/footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>	

